package com.example.gettingstart.mapper;

import com.example.gettingstart.entity.Country;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CountryMapper {

    List<Country> selectAll();

    // 通过id查询Country
    Country selectById(Long id);

    Country selectByName(@Param("name") String name);
}
